home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / ulimit.z / ulimit
Text File  |  1998-10-30  |  3KB  |  133 lines

  1.  
  2.  
  3.  
  4. uuuulllliiiimmmmiiiitttt((((1111))))                                                            uuuulllliiiimmmmiiiitttt((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      uuuulllliiiimmmmiiiitttt - set or report file size limit
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      uuuulllliiiimmmmiiiitttt [-f][blocks]
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      The uuuulllliiiimmmmiiiitttt utility sets or reports the file-size writing limit imposed on
  16.      files written by the shell and its child processes (files of any size may
  17.      be read). Only a process with appropriate privileges can increase the
  18.      limit.
  19.  
  20. OOOOPPPPTTTTIIIIOOOONNNNSSSS
  21.      The uuuulllliiiimmmmiiiitttt utility supports the XBD specification, Utility Syntax
  22.      Guidelines.
  23.  
  24.      The following option is supported:
  25.  
  26.      ----ffff  Set (or report, if no blocks operand is present), the file size limit
  27.          in blocks. The ----ffff option is also the default case.
  28.  
  29. OOOOPPPPEEEERRRRAAAANNNNDDDDSSSS
  30.      The following operand is supported:
  31.  
  32.      blocks  The number of 512-byte blocks to use as the new file size limit.
  33.  
  34. SSSSTTTTDDDDOOOOUUUUTTTT
  35.      The standard output is used when no blocks operand is present. If the
  36.      current number of blocks is limited, the number of blocks in the current
  37.      limit is written in the following format:
  38.  
  39.           "%d\n", <number of 512-byte blocks>
  40.  
  41.      If there is no current limit on the number of blocks, in the POSIX locale
  42.      the following format is used:
  43.  
  44.           "unlimited\n"
  45.  
  46. EEEEXXXXIIIITTTT SSSSTTTTAAAATTTTUUUUSSSS
  47.      The following exit values are returned:
  48.  
  49.      0   Successful completion.
  50.  
  51.      >0  A request for a higher limit was rejected or an error occurred.
  52.  
  53. AAAAPPPPPPPPLLLLIIIICCCCAAAATTTTIIIIOOOONNNN UUUUSSSSAAAAGGGGEEEE
  54.      Since uuuulllliiiimmmmiiiitttt affects the current shell execution environment, it is
  55.      always provided as a shell regular built-in. If it is called in separate
  56.      utility execution environment, such as one of the following:
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. uuuulllliiiimmmmiiiitttt((((1111))))                                                            uuuulllliiiimmmmiiiitttt((((1111))))
  71.  
  72.  
  73.  
  74.  
  75.           nohup ulimit -f 10000
  76.           env ulimit 10000
  77.  
  78.      it will not affect the file size limit of the caller's environment.
  79.  
  80.      Once a limit has been decreased by a process, it cannot be increased
  81.      (unless appropriate privileges are involved), even back to the original
  82.      system limit.
  83.  
  84. EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  85.      Set the file size limit to 51,200 bytes:
  86.  
  87.           ulimit -f 100
  88.  
  89. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  90.      sssshhhh((((1111)))),,,, bbbbsssshhhh((((1111))))
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.